<template>
  <div class="MyPagination-main">
    <el-pagination
      class="pagination"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page.currentPage"
      :page-sizes="[page.pageSizes]"
      :page-size="page.pageSizes"
      layout="total, sizes, prev, pager, next, jumper"
      :total="totle"
    ></el-pagination>
  </div>
</template>

<script>
export default {
  name: "MyPagination",
  props: {
    page: Object,
    totle:Number
  },
  data() {
    return {};
  },

  methods: {
    handleSizeChange(v) {
      this.$emit("handle-size-change", v);
    },
    handleCurrentChange(v) {
      this.$emit("handle-current-change", v);
    }
  }
};
</script>

<style lang='scss' scoped>
</style>
